(function() {
	var S = {
			getBrowser: function() {
				var Sys = {};
				var ua = navigator.userAgent.toLowerCase();
				var  s;  
		        (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :  
		        (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :  
		        (s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] :  
		        (s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] :  
		        (s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;  
				S.try360SE(function(ret) {
					if(ret == true)
						Sys.qh360 = true;
				})
				return Sys;
			},
			try360SE : function(callback) {    
				var ret = false;
				var img = new Image();    
				img.src = 'res://360se.exe/2/2025'; 
				
				img.onload = function() {  
					ret = true;
					callback(ret); 
				}  
			}
	}

	window.S = S;

})(window)
